package com.syni.mdd.yhd.common.all.entity;

import com.syni.mdd.yhd.common.all.constants.Constants;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @className BmsAgent
 * @description TOO
 * @Author cfx
 * @DATE 2019/12/5 10:21
 * @VERSION 1.0
 **/
@Entity
@Table(name="bms_business_ver_record")
@Data
public class BmsBusinessVerRecord {

    @Id                                                  //主键
    @GeneratedValue(strategy= GenerationType.IDENTITY)   //自增主键
    private Integer id;

    @Column(name = "business_id")
    private Integer businessId;

    @Column(name = "order_id")
    private Integer orderId;

    @Column(name = "rece_id")
    private Integer receId;

    @Column(name = "type")
    private Integer type;

    @Column(name = "coupon_name")
    private String couponName;

    @Column(name = "ver_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date verTime;

    @Column(name = "ver_way")
    private Integer verWay;

    @Column(name = "ver_num")
    private Integer verNum;

    @Column(name = "ver_name")
    private String verName;

    @Transient
    private String userName = Constants.DEFAULT_USER_NAME;

    @Column(name = "ver_codes")
    private String verCodes;

    @Transient
    private Date expireTime;

    @Transient
    BmsDxGroupBuy bmsDxGroupBuy;

    @Transient
    BmsBusinessCoupon bmsBusinessCoupon;

    @Transient
    BmsBusiness bmsBusiness;





}
